package com.wf.pattern.builder;

import java.util.Date;

/**
 * 功能描述
 *
 * @since 2021/11/3
 */
public class Director {
    private AbstractBuilder builder;

    public Director(AbstractBuilder builder) {
        this.builder = builder;
    }

    public Product construct() {
        builder.buildPartA();
        builder.buildPartB();
        builder.buildPartC();
        return builder.getResult();
    }
}
